import {ADD_COUNT, ADD_TO_CART} from "./mutation-types";

export default {

  [ADD_COUNT](state, payLoad){
    payLoad.count ++
  },
  [ADD_TO_CART](state, payLoad){
    //添加勾选状态
    payLoad.checked = true

    state.cartList.push(payLoad)
  }


}
